#ifndef CONNECTION_H
#define CONNECTION_H

#include <QObject>
#include "stumysql.h"
class Connection : public QObject
{
    Q_OBJECT
public:
    explicit Connection(QObject *parent = nullptr);
    ~Connection();
    static Connection *getInstance();
    void initDatabase();
    stumySql *getDatabase();

signals:

private:
    static Connection *instance;
    stumySql *m_ptrStumysql;
};

#endif // CONNECTION_H
